package model;

public class Roi extends AbstractPiece{

	public Roi(String name, Couleur couleur, Coord coord) {
		super(name, couleur, coord);
	}

	@Override
	public boolean isMoveOk(int xFinal, int yFinal) {
		if(this.isBouger(xFinal, yFinal)){
			if(xFinal > (this.getX()+1) || yFinal > (this.getY()+1)){
				return false;
			}else if(xFinal == this.getX() && yFinal == this.getY()){
				return false;
			}
			return true;
		}
		return false;
	}

}
